<?php 
$tabla="noticias";
$condicion=" NoticiaPublicar=1 ";
$orden=" order by NoticiaId desc limit 0,3";
$res=cons_sql($tabla,$condicion,$orden);
if(mysql_num_rows($res)>0):
?>


<div class="sol">
<div class="not">Ultimas Noticias</div>
<?php while($reg=mysql_fetch_array($res)):?>
<div class="row">
<div class="col-md-3"><span class="date"><?php echo format_fec_age($reg['NoticiaFecha'])?></span></div>
<div class="col-md-9">
<a href="noticia.php?not=<?php echo utf8_encode($reg['NoticiaId'])?>"><?php echo utf8_encode($reg['NoticiaTitulo'])?></a>
</div>
</div>
<?php endwhile ?>	
</div>
<?php endif ?>	